package com.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户积分流水表
 * </p>
 *
 * @author ckick
 * @since 2025-09-20 09:29:27
 */
@Getter
@Setter
@TableName("points_transactions")
public class PointsTransactions {

    /**
     * 流水记录ID
     */
    @TableId(value = "transaction_id", type = IdType.AUTO)
    private Integer transactionId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 变动前积分
     */
    @TableField("pre_points")
    private Integer prePoints;

    /**
     * 变动类型（1收入/-1支出）
     */
    @TableField("transaction_type")
    private String transactionType;

    /**
     * 变动描述
     */
    @TableField("description")
    private String description;

    /**
     * 变动后积分
     */
    @TableField("post_points")
    private Integer postPoints;

    /**
     * 变动时间
     */
    @TableField("created_at")
    private Date createdAt;
}
